package com.oocl.servlet;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class GotoServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;

    public GotoServlet() {
        super();
    }
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		if(request.getParameter("id") == null)
			return;
		int uid = Integer.parseInt((String)request.getParameter("id"));
		request.getSession().setAttribute("uid", uid);
		request.getRequestDispatcher("view").forward(request, response);
	}
}
